tests: Add another parsing test from the css spec
authorBenjamin Otte <otte@redhat.com>
Thu, 14 Apr 2011 15:48:06 +0000 (17:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:55 +0000 (22:17 +0200)
tests/css/parser/Makefile.am
tests/css/parser/css-21-malformed-statements.css [new file with mode: 0644]
tests/css/parser/css-21-malformed-statements.errors [new file with mode: 0644]
tests/css/parser/css-21-malformed-statements.ref.css [new file with mode: 0644]

index 75cc6ccbda88885d81c610dce8d305b7b3ef16a9..00ee38d559f8be5065790e89dbb1200f022ce7cf 100644 (file)
@@ -37,6 +37,9 @@ EXTRA_DIST += \
        css-21-malformed-declarations.css \
        css-21-malformed-declarations.errors \
        css-21-malformed-declarations.ref.css \
+       css-21-malformed-statements.css \
+       css-21-malformed-statements.errors \
+       css-21-malformed-statements.ref.css \
        declarations.css \
        declarations.errors \
        declarations.ref.css \
diff --git a/tests/css/parser/css-21-malformed-statements.css b/tests/css/parser/css-21-malformed-statements.css
new file mode 100644 (file)
index 0000000..38ffea9
--- /dev/null
@@ -0,0 +1,4 @@
+p @here {color: red}     /* ruleset with unexpected at-keyword "@here" */
+@foo @bar;               /* at-rule with unexpected at-keyword "@bar" */
+}} {{ - }}               /* ruleset with unexpected right brace */
+) ( {} ) p {color: red } /* ruleset with unexpected right parenthesis */
diff --git a/tests/css/parser/css-21-malformed-statements.errors b/tests/css/parser/css-21-malformed-statements.errors
new file mode 100644 (file)
index 0000000..3fdb242
--- /dev/null
@@ -0,0 +1,4 @@
+css-21-malformed-statements.css:1: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+css-21-malformed-statements.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+css-21-malformed-statements.css:3: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
+css-21-malformed-statements.css:4: error: GTK_CSS_PROVIDER_ERROR_SYNTAX
diff --git a/tests/css/parser/css-21-malformed-statements.ref.css b/tests/css/parser/css-21-malformed-statements.ref.css
new file mode 100644 (file)
index 0000000..e69de29